import request from '@/utils/request'

// 1. 获取地址列表信息接口

export function getAddress() {
    return request({
        url: '/addressController/getAddress',
        method: 'get'
    })
}

// 2. 新增地址
export function saveOrUpdateAddress(data) {
    return request({
        url: '/addressController/saveOrUpdateAddress',
        method: 'post',
        data
    })
}

// 3. 删除地址
export function deleteAddress(data) {
    return request({
        url: '/addressController/deleteAddress',
        method: 'delete',
        data
    })
}

